
$(function() {
	// 切换样式
	$(document.body).on("click", ".do-toggle-class", function() {
		var me = $(this);
		var options = me.zoptions();
		var target = me;
		if (options.target == "body") {
			target = $(document.body);
		} else if (options.target) {
			var box = options.closest ? me.closest(options.closest) : $(document.body);
			target = box.find(options.target);
		}
		if (target.hasClass(options.className)) {
			target.removeClass(options.className);
		} else {
			target.addClass(options.className);
		}
	});
});

